import { requestType } from '~/config/enum.config';

const SERVICE = 'domain-service';
const CONTROLLER = 'caseOperatorPageController';

export default {
  /**
   * 新增地址
   */
  addPersonalAddress: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'addPersonalAddress',
    type: requestType.Post,
  },
  /**
   * 查询外访附件
   */
  queryVisitAttachment: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'queryVisitAttachment',
    type: requestType.Get,
  },
  /**
   * 分页查询跟进
   */
  caseFollowupRecord: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'caseFollowupRecord',
    type: requestType.Get,
  },

  /**
   * 增加催收跟进
   */
  addCaseFollowupRecord: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'caseFollowupRecord',
    type: requestType.Post,
  },

  /**
   * 电话录音查询列表
   */
  caseTelRecord: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'caseTelRecord',
    type: requestType.Get,
  },

  /**
   * 增加催收总结
   */
  addCaseTelRecord: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'caseTelRecord',
    type: requestType.Post,
  },

  /**
   * 客户开户信息查询
   */
  personalBankInfo: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'personalBankInfo',
    type: requestType.Get,
  },

  /**
   * 客户联系人信息查询
   */
  personalContacts: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'personalContacts',
    type: requestType.Get,
  },

  /**
   * 客户信息查询
   */
  personalInfo: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'personalInfo',
    type: requestType.Get,
  },

  /**
   * 执行页顶部信息
   */
  topInfo: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'topInfo',
    type: requestType.Get,
  },

  /**
   * 客户房产信息
   */
  queryPersonalHouse: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'queryPersonalHouse',
    type: requestType.Get,
  },

  /**
   * 客户收支状况查询
   */
  queryPersonalIncome: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'queryPersonalIncome',
    type: requestType.Get,
  },

  /**
   * 产品信息查询
   */
  queryProduct: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'queryProduct',
    type: requestType.Get,
  },

  /**
   * 案件信息查询
   */
  queryCaseInfo: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'queryCaseInfo',
    type: requestType.Get,
  },
  /**
   * 共债信息查询
   */
  queryDebtCaseInfo: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'queryDebtCaseInfo',
    type: requestType.Get,
  },

  /**
   * 案件批注分页查询
   */
  caseRemark: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'caseRemark',
    type: requestType.Get,
  },

  /**
   * 添加批注
   */
  addCaseRemark: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'addCaseRemark',
    type: requestType.Post,
  },

  /**
   * 客户联系人地址信息查询
   */
  queryPersonalAddress: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'queryPersonalAddress',
    type: requestType.Get,
  },

  // 地址删除
  deletePersonalAddress: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'deletePersonalAddress',
    type: requestType.Delete,
  },

  /**
   * 查询催收总结
   */
  findCaseTelRecord: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'findCaseTelRecord',
    type: requestType.Get,
  },
  /**
   * 申请历史
   */
  caseApplyHistory: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'caseApplyHistory',
    type: requestType.Get,
  },
  /**
   * 执行页--通讯录 -- 添加联系人
   */
  addPersonalContact: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'addPersonalContact',
    type: requestType.Post,
  },
  /**
   * 执行页--新增电话--自催和外包联系人电话等级下拉获取接口
   */
  getPhoneRankList: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getPhoneRankList',
    type: requestType.Get,
  },
  /**
   * 执行页--通讯录 -- 删除联系人
   */
  deletePersonalContact: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'deletePersonalContact',
    type: requestType.Delete,
  },
  /*
  /**
   * 执行页--行动区 -- 流转历史
   */
  getAllCaseTurnRecords: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getAllCaseTurnRecords',
    type: requestType.Get,
  },
  /**
   * 执行页--发送短信
   */
  sendSms: {
    service: SERVICE,
    controller: 'smsTemplate',
    action: 'sendSms',
    type: requestType.Post,
  },
  /**
   * 执行页--发送邮件
   */
  sendMail: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'sendMail',
    type: requestType.Post,
  },
  /**
   * 执行页--获取模板
   */
  getTemplateContent: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getTemplateContent',
    type: requestType.Get,
  },
  /**
   * 执行页--还款计划
   */
  queryRepaymentPlan: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'queryRepaymentPlan',
    type: requestType.Get,
  },
  /**
   * 执行页--附件信息
   */
  queryCaseUploadFile: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'queryCaseUploadFile',
    type: requestType.Get,
  },
  /**
   * 更改风险客户标识
   */
  modifyRiskFlag: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'modifyRiskFlag',
    type: requestType.Get,
  },
  /**
   * 外放总结获取联系人信息
   */
  getPersonalContactInfo: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getPersonalContactInfo',
    type: requestType.Post,
  },
  /**
   * 增加法务催收跟进
   */
  addCaseLegalRecord: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'addCaseLegalRecord',
    type: requestType.Post,
  },
  /**
   * 分页查询法务跟进
   */
  queryCaseLegalRecord: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'queryCaseLegalRecord',
    type: requestType.Get,
  },
  /**
   * 查询最新的未结案的法催记录
   */
  queryUnClossCaseLegalRecord: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'queryUnClossCaseLegalRecord',
    type: requestType.Get,
  },
  /**
   * 通过id查询法催记录
   */
  queryCaseLegalRecordById: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'queryCaseLegalRecordById',
    type: requestType.Get,
  },
  /**
   * 查询执行立案法院名称去重
   */
  queryExecuteCourtName: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'queryExecuteCourtName',
    type: requestType.Get,
  },
  /**
   * 出入库历史记录
   */
  queryWarehouseChangeRecords: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'queryWarehouseChangeRecords',
    type: requestType.Get,
  },
  /**
   * 单个附件删除
   */
  deleteCaseUploadFileById: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'deleteCaseUploadFileById',
    type: requestType.Get,
  },
  /**
   * 通过案件任务id查看案件当前信息
   */
  getCaseInfoRecordIdById: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getCaseInfoRecordIdById',
    type: requestType.Get,
  },
  /**
   * 案件历史记录
   */
  caseHistoryTrack: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'caseHistoryTrack',
    type: requestType.Get,
  },
  updateCaseRemarkTop: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'updateCaseRemarkTop',
    type: requestType.Get,
  },
  // 账户明细
  queryCaseDetailInfo: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'queryCaseDetailInfo',
    type: requestType.Get,
  },
  // 账户逾期信息
  queryCaseOverdueInfo: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'queryCaseOverdueInfo',
    type: requestType.Get,
  },
  // 实体信息
  queryCaseEntityInfo: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'queryCaseEntityInfo',
    type: requestType.Get,
  },

  // 借据信息
  queryLoanInfo: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'queryLoanInfo',
    type: requestType.Get,
  },
  // 车贷订单信息
  queryCarLoanOrderInfo: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'queryCarLoanOrderInfo',
    type: requestType.Get,
  },

  //查询最新逾期信息
  queryRepayLoanInfo: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'queryRepayLoanInfo',
    type: requestType.Get,
  },
  //查询车贷最新逾期信息
  queryRepayCarLoan: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'queryRepayCarLoan',
    type: requestType.Get,
  },
  //查询车贷还款信息
  queryRepayRecordsCarLoan: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'queryRepayRecordsCarLoan',
    type: requestType.Get,
  },
  // 客户信息
  queryPersonalInfo: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'queryPersonalInfo',
    type: requestType.Get,
  },

  // 取消停催

  applyPauseCaseActive: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'applyPauseCaseActive',
    type: requestType.Post,
  },

  // 短信记录查询
  findSmsRecordLog: {
    service: SERVICE,
    controller: 'smsRecord',
    action: 'findSmsRecordLog',
    type: requestType.Get,
  },
  // 实时还款查询
  queryRepayRecords: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'queryRepayRecords',
    type: requestType.Get,
  },
  // 短信记录查询
  findSmsSendLog: {
    service: SERVICE,
    controller: 'smsRecord',
    action: 'findSmsSendLog',
    type: requestType.Get,
  },
  // 还款信息查询
  queryCaseRepaymentInfo: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'queryCaseRepaymentInfo',
    type: requestType.Get,
  },
  //2021-08-12对接青牛呼叫系统之后新增接口-author：zeng------
  /**
   * 更新催记(编辑通话后生成的催记信息)
   */
   updateCaseFollowupRecord: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'updateCaseFollowupRecord',
    type: requestType.Put,
  },
  /**
   * 增加电催催收跟进
   */
   increaseCaseFollowupRecord: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'caseFollowupRecord/TEL',
    type: requestType.Post,
  },
  /**
   * 下载录音
   */
   getRecordByRecordId: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getRecordByRecordId',
    type: requestType.Get,
  },
  //------------
}
